package com.gray.serverclientuser.controller.mq;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * Created on 2019/6/18.
 *
 * @author Grak
 * @since 1.0
 */
public interface StreamClient {

    String INPUT = "myMessage";
    String OUTPUT = "myMessageOut";

    String INPUT2 = "myMessage2";
    String OUTPUT2 = "myMessageOut2";

    @Input(StreamClient.INPUT)
    SubscribableChannel input();

    @Output(StreamClient.OUTPUT)
    MessageChannel output();

    @Input(StreamClient.INPUT2)
    SubscribableChannel input2();

    @Output(StreamClient.OUTPUT2)
    MessageChannel output2();
}
